import request from '@/request'

export default {
    //得带有gateway跳转
    //获取所有用户的功能
    getUserList(current, limit) {
        return request({

            url: `/user/forumUser/getUserList/${current}/${limit}`,
            method: 'get',



        })
    },
    deleteUser(id) {
        return request({

            url: `/user/forumUser/delteUser${id}`,
            method: 'get',



        })
    },
    //得带有gateway跳转
    //获取所有文章的功能
    getAllArticle(current, limit) {
        return request({

            url: `/article/forumArticle/pageArticle/${current}/${limit}`,
            method: 'get',



        })
    },
    deleteArticle(id) {
        return request({

            url: `/article/forumArticle/delteArticle${id}`,
            method: 'get',



        })
    },
    //得带有gateway跳转
    //获取所有社区的功能
    getAllCommunity(current, limit) {
        return request({

            url: process.env.BASE_API + `/community/forumCommunity/pageConditionCommunity/${current}/${limit}`,
            method: 'post',




        })
    },
    deleteCommunity(communtiyId) {
        return request({

            url: process.env.BASE_API + `/community/forumCommunity/delteCommunity/${communityId}`,
            method: 'delete',



        })
    },







}